#include "stdafx.h"
#include "CWordLearn.h"
#pragma once
#define WIN32_LEAN_AND_MEAN	
#define _CRT_SECURE_NO_DEPRECATE
#include <windows.h>
#include <objbase.h>
#include "UIlib.h"
using namespace DuiLib;
class CSetExce : public CWindowWnd, public INotifyUI
{
public:
	CSetExce()
	{
		m_CwordExamObj = NULL;
	};
	VOID SetXuYuFaPointer( CWordLearn *pObj)
	{
		m_CwordExamObj = pObj;
	}
	LPCTSTR GetWindowClassName() const 
	{ 
		return _T("UIMainFrame"); 
	};
	UINT GetClassStyle() const 
	{ 
		return UI_CLASSSTYLE_FRAME | CS_DBLCLKS; 
	};
	void OnFinalMessage(HWND /*hWnd*/) 
	{ 
		/*delete this;*/
	};
	void Init() { }
	void OnPrepare(TNotifyUI& msg) ;
	void Notify(TNotifyUI& msg);
	LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
	///////////////////////////////////////////////////
	void DefaultVoiceRateControl(CPaintManagerUI *pPaintManager);
	void SaveVoiceRate(CPaintManagerUI *pPaintManager, LPCTSTR lpstrSpeaker, LPCTSTR lpstrSpeed);
	void InitVoiceRateControl(CPaintManagerUI *pPaintManager, LPCTSTR lpstrSpeaker, LPCTSTR lpstrSpeed);
public:
	CPaintManagerUI m_PaintManager;
	CWordLearn* m_CwordExamObj;
};
